<html>
<input value="jac" id="username" >
<script type="text/javascript" src="../shiro/manager/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
console.log("a1");//会在父页面打印之前打印a1
var a2 = $(window.parent.document.getElementById("a2")).html();
console.log(a2);//输出:a2
</script>
</html>




